package catherineliu.main.factory.computer;

/**
 * 项目：DesignPatternsDemo
 * 文件描述：工厂模式
 * 作者：ljj
 * 创建时间：2020/11/25
 */
public abstract class Computer {

    public abstract String getRAM();
    public abstract String getHDD();
    public abstract String getCPU();

    @Override
    public String toString() {
        return "RAM = " + this.getRAM() + ", HDD = " + this.getHDD() + ", CPU = " + this.getCPU();
    }
}
